package com.example.jyjava.dao;

import com.example.jyjava.bean.Consent;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ConsentDao {

    public int addConsent(Consent consent);

    public List<Consent> getConsent(@Param("title")String title, @Param("pageStart")int PageStart, @Param("pageSize")int pageSize, @Param("userId") Integer userId,@Param("consentId") Integer consentId);

    public int getConsentCounts(@Param("title")String title,@Param("userId") Integer userId,@Param("consentId") Integer consentId);

    public int getCDelete(@Param("id") int id);

    public Consent getCon(@Param("id") int id);
}
